<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>数据 - AdminLTE2定制版</title>
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
	<link rel="stylesheet" href="../statics/element-ui/index.css">
</head>

<body>
<div id="app">
    <form action="/login" method="post">
        <div>
            <input type="text" name="username" value="zhangsan" placeholder="用户名">
        </div>
        <div>
            <input type="password" name="password" value="12345678" placeholder="密码">
        </div>
        <div class="row">
            <input type="checkbox" name="remember-me" value="true"/> 记住我 &nbsp;&nbsp;
            <button type="submit">登录</button>
        </div>
    </form>
    <!--<h3 style="color: red" th:if="${loginFailure==false}">
        用户名或者密码错误！！
    </h3>-->
</div>
</body>
<script src="/statics/vue/vue.js"></script>
<script src="/statics/element-ui/index.js"></script>
<script src="/statics/axios/axios.min.js"></script>
<script src="/statics/js/request.js"></script>
<script type="text/javascript" th:inline="javascript">
	var flag = [[${loginFailure}]];
</script>
<script>
    var app = new Vue({
        el: '#app',
        data: {
        },
        created(){
            if(flag==true){
                this.$message({
					type: 'error',
					message: '用户名或者密码错误'
				});
            }
        },
        mounted() {
        },
        methods: {
        }
    });
</script>
</html>
